package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;

/**
 * @Author: hujian
 * @Date: 2019/9/15 11:14
 * @Description: <描述>
 */
public class TestIo {
    public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {
        String file = "c://stream.txt";
        String charset = "UTF-8";
        //写字符转换成字节流
        FileOutputStream outputStream = new FileOutputStream(file);
        OutputStreamWriter writer = new OutputStreamWriter(outputStream, charset);

    }
}
